package com.docted.design.pattern.prototype;

import java.util.ArrayList;

/**
 * @author DoCted
 * @since v1.0 2018/3/7
 */
public class Prototype implements Cloneable{

    private String name;

    private ArrayList<String> list = new ArrayList();

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public ArrayList getList() {
        return list;
    }

    public void setList(ArrayList list) {
        this.list = list;
    }


    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
